package com.sq.partner.manager.dao.impl;

import com.sq.partner.manager.dao.AntVideoDao;
import com.sq.partner.manager.mybatis.model.AntVideoVo;
import com.sq.partner.manager.mybatis.model.ClaimDemage;
import com.sq.partner.manager.util.Page;
import org.springframework.stereotype.Repository;

import java.sql.SQLException;
import java.util.List;
import java.util.Map;

@Repository
public class AntVideoDaoImpl extends BaseDaoImpl implements AntVideoDao {
    @Override
    public Page queryAntVideo(Page page) throws Exception {
        Map<String,Object> map = (Map<String, Object>) page.getType();
        page.setTotal((Integer)this.query("queryCount3ByMap", map));
        List<AntVideoVo> list = queryList("queryAntVideo", map);
        page.setData(list);
        return page;
    }

	@Override
	public List<Map<String, Object>> queryAntVideoForExcel(Map<String, String> map) throws Exception {
		// TODO Auto-generated method stub
		return this.queryList("queryAntVideoForExcel", map);
	}
}
